package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
@TableName("t_student")
public class StudentBean {
    /**编号*/
    @TableId(value = "pk_stuid",type = IdType.AUTO)
    private String stuID;
    /**姓名*/
    @TableField("s_stuname")
    private String stuName;
    /**性别*/
    @TableField("s_stugender")
    private String stuGender;
    /**班级*/
    @TableField(exist = false)
    private ClassBean stuClass;
    /**房间*/
    @TableField(exist = false)
    private RoomBean stuRoom;
    /**电话*/
    @TableField("s_stutel")
    private String stuTel;
    /**头像*/
    @TableField("s_stuimg")
    private String stuImg;
    /**入住时间*/
    @TableField("s_stujoindate")
    private LocalDate stuInDate = LocalDate.now();
    /**班级id*/
    @TableField("fk_classid")
    private Integer stuClassID;
    /**房间id*/
    @TableField("fk_roomid")
    private Integer stuRoomID;

    public StudentBean() {
    }

    public StudentBean(String stuName) {
        this.stuName = stuName;
    }

    public StudentBean(String stuName, String stuGender, String stuTel, String stuImg, Integer stuClassID, Integer stuRoomID) {
        this.stuName = stuName;
        this.stuGender = stuGender;
        this.stuTel = stuTel;
        this.stuImg = stuImg;
        this.stuClassID = stuClassID;
        this.stuRoomID = stuRoomID;
    }

    public String getStuID() {
        return stuID;
    }

    public void setStuID(String stuID) {
        this.stuID = stuID;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuGender() {
        return stuGender;
    }

    public void setStuGender(String stuGender) {
        this.stuGender = stuGender;
    }

    public ClassBean getStuClass() {
        return stuClass;
    }

    public void setStuClass(ClassBean stuClass) {
        this.stuClass = stuClass;
    }

    public RoomBean getStuRoom() {
        return stuRoom;
    }

    public void setStuRoom(RoomBean stuRoom) {
        this.stuRoom = stuRoom;
    }

    public String getStuTel() {
        return stuTel;
    }

    public void setStuTel(String stuTel) {
        this.stuTel = stuTel;
    }

    public String getStuImg() {
        return stuImg;
    }

    public void setStuImg(String stuImg) {
        this.stuImg = stuImg;
    }

    public LocalDate getStuInDate() {
        return stuInDate;
    }

    public void setStuInDate(LocalDate stuInDate) {
        this.stuInDate = stuInDate;
    }

    public Integer getStuClassID() {
        return stuClassID;
    }

    public void setStuClassID(Integer stuClassID) {
        this.stuClassID = stuClassID;
    }

    public Integer getStuRoomID() {
        return stuRoomID;
    }

    public void setStuRoomID(Integer stuRoomID) {
        this.stuRoomID = stuRoomID;
    }

    @Override
    public String toString() {
        return "\nStudentBean{" +
                "stuID='" + stuID + '\'' +
                ", stuName='" + stuName + '\'' +
                ", stuGender='" + stuGender + '\'' +
                ", stuClass=" + stuClass +
                ", stuRoom=" + stuRoom +
                ", stuTel='" + stuTel + '\'' +
                ", stuImg='" + stuImg + '\'' +
                ", stuInDate=" + stuInDate +
                ", stuClassID=" + stuClassID +
                ", stuRoomID=" + stuRoomID +
                '}';
    }
}
